package com.ruoyi.quality.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.quality.domain.bo.QualityRejectsnLossesBo;
import com.ruoyi.quality.domain.vo.QualityRejectsnLossesVo;

import java.util.Collection;
import java.util.List;

/**
 * 不合格品损失Service接口
 *
 * @author yanjun
 * @date 2023-09-12
 */
public interface IQualityRejectsnLossesService {

    /**
     * 查询不合格品损失
     */
    QualityRejectsnLossesVo queryById(Long rejectsnId);

    /**
     * 查询不合格品损失
     */
    QualityRejectsnLossesVo queryByOddNumber(String oddNumber);

    /**
     * 查询不合格品损失
     */
    List<QualityRejectsnLossesVo> queryByIds(Collection<Long> rejectsnIds);

    /**
     * 查询不合格品损失列表
     */
    TableDataInfo<QualityRejectsnLossesVo> queryPageList(QualityRejectsnLossesBo bo, PageQuery pageQuery);

    /**
     * 查询不合格品损失列表
     */
    TableDataInfo<QualityRejectsnLossesVo> queryPageListSelect(QualityRejectsnLossesBo bo, PageQuery pageQuery);

    /**
     * 查询不合格品损失列表
     */
    List<QualityRejectsnLossesVo> queryList(QualityRejectsnLossesBo bo);

    /**
     * 新增不合格品损失
     */
    Boolean insertByBo(QualityRejectsnLossesBo bo);

    /**
     * 修改不合格品损失
     */
    Boolean updateByBo(QualityRejectsnLossesBo bo);

    /**
     * 校验并批量删除不合格品损失信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
